package org.wmq.housewebadmin.config;

import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Info;
import org.springdoc.core.models.GroupedOpenApi;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class Knife4jConfiguration {
    @Bean
    public OpenAPI customOpenAPI(){
        return new OpenAPI().info(new Info().title("后台管理系统api").version("1.0").description("后台管理系统api"));
    }
    @Bean
    public GroupedOpenApi systemAPI(){
        return GroupedOpenApi.builder().group("系统信息管理").pathsToMatch("/admin/system/**").build();
    }
}
